//
//  AGLVideo.m
//  滴滴快拍
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "AGLVideo.h"

@implementation AGLVideo

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"stream"]) {
        NSDictionary *dic = value;
        self.streambase = dic[@"base"];
    } else if ([key isEqualToString:@"ext"]) {
        NSDictionary *dic = value;
        self.icon = dic[@"owner"][@"icon"];
        self.nick = dic[@"owner"][@"nick"];
        self.finishTimeNice = dic[@"finishTimeNice"];
        self.t = dic[@"t"];
        self.ft = dic[@"ft"];
        
    } else if ([key isEqualToString:@"stat"]) {
        self.vcntNice = [value objectForKey:@"vcntNice"];
        self.lcnt = [value objectForKey:@"lcnt"];
    } else if ([key isEqualToString:@"pic"]) {
        self.picbase = [value objectForKey:@"base"];
        self.picm = [NSString stringWithFormat:@"%@%@", [value objectForKey:@"base"], [value objectForKey:@"m"]];
        
    }
}


@end
